package com.biz.hunter.db.entity;

import java.io.Serializable;


public class Person implements Serializable {
    /**
     *
     */
    public enum State {
        generated, binded, auditing, approved, rejected, active, inactive;
    }

    private static final long serialVersionUID = 3132967525829175157L;
    public static int activate = 1;
    public static int inactivate = 0;

    protected Integer id;
    protected String name;
    protected String openid;
    protected int age;
    protected Integer workage;
    protected String phone;
    protected String mobile;
    protected String email;
    protected String address;
    protected String icon;
    protected String image;
    protected String bestdomain;
    protected long createDate;
    //protected String location;
    protected int active;
    protected int cityId;
    protected String cityName;
    protected long roleId;
    protected int companyId;
    protected int inservice;
    protected String companyName;
    protected int platformId;
    protected String roleName;

    protected int domainId;
    protected String domainName;
    private Integer createby;

    public Person() {
        id = 0;
        name = "";
        openid = "";
        age = 0;
        workage = 0;
        phone = "";
        email = "";
        address = "";
        icon = "";
        image = "";
        bestdomain = "";
        createDate = 0L;
        cityId = 0;
        active = 0;
        inservice = 0;
        companyName = "";
        mobile = "";
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public Integer getWorkage() {
        return workage;
    }

    public void setWorkage(Integer workage) {
        this.workage = workage;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phoneNum) {
        this.phone = phoneNum;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getBestdomain() {
        return bestdomain;
    }

    public void setBestdomain(String bestdomain) {
        this.bestdomain = bestdomain;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setCreateDate(long date) {
        createDate = date;
    }

    public long getCreateDate() {
        return createDate;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public int getActive() {
        return active;
    }

    public void setActive(int active) {
        this.active = active;
    }

    public int getInservice() {
        return inservice;
    }

    public void setInservice(int inservice) {
        this.inservice = inservice;
    }

    public int getCompanyId() {
        return companyId;
    }

    public void setCompanyId(int companyID) {
        this.companyId = companyID;
    }

    public String getCompanyName() {
        return this.companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public long getRoleId() {
        return roleId;
    }

    public void setRoleId(long roleId) {
        this.roleId = roleId;
    }

    public int getCityId() {
        return cityId;
    }

    public void setCityId(int cityId) {
        this.cityId = cityId;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String phoneNum) {
        this.mobile = phoneNum;
    }

    public int getPlatformId() {
        return platformId;
    }

    public void setPlatformId(int platformId) {
        this.platformId = platformId;
    }

    public void setRoleName(String name2) {
        // TODO Auto-generated method stub
        roleName = name2;
    }

    public String getRoleName() {
        return roleName;
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public int getDomainId() {
        return domainId;
    }

    public void setDomainId(int domainId) {
        this.domainId = domainId;
    }

    public String getDomainName() {
        return domainName;
    }

    public void setDomainName(String domainName) {
        this.domainName = domainName;
    }

    public Integer getCreateby() {
        return createby;
    }

    public void setCreateby(Integer createby) {
        this.createby = createby;
    }

    @Override
	public String toString() {
		return "Person{" +
				"id=" + id +
				", name='" + name + '\'' +
				", openid='" + openid + '\'' +
				", age=" + age +
				", workage=" + workage +
				", phone='" + phone + '\'' +
				", mobile='" + mobile + '\'' +
				", email='" + email + '\'' +
				", address='" + address + '\'' +
				", icon='" + icon + '\'' +
				", image='" + image + '\'' +
				", bestdomain='" + bestdomain + '\'' +
				", createDate=" + createDate +
				", active=" + active +
				", cityId=" + cityId +
				", cityName='" + cityName + '\'' +
				", roleId=" + roleId +
				", companyId=" + companyId +
				", inservice=" + inservice +
				", companyName='" + companyName + '\'' +
				", platformId=" + platformId +
				", roleName='" + roleName + '\'' +
				", domainId=" + domainId +
				", domainName='" + domainName + '\'' +
				", createby=" + createby +
				'}';
	}
}
